package ifo;

public class SchemaFile {

	public static enum Type {
		SCHEMA01,
		SCHEMA02,
		SCHEMA03
	}
	
	private String title = "";
	private String description = "";
	private String footnotes = "";
	private String wsTitle = "";
	private String[][] data;
	private Type type;

	public SchemaFile(Type tp, String[][] inputData) {
		setType(tp);
		setData(inputData);
	}
	
	public void printDataTable() {
		int x, y;
		x = 0;
		y = 0;
		
		for (y = 0; y < data[0].length; y++) {
			for (x = 0; x < data.length; x++) {
				System.out.print(padToLength(data[x][y], ExcelFile.getCountryMaxLen()));
			}
			System.out.print("\n");
		}
	}
	
	private String padToLength(String in, int len) {
		while (in.length() < len) { 
			in = in + " ";
		}
		return in;
	}
	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle() {
		return title;
	}

	public void setData(String[][] data) {
		this.data = data;
	}

	public String[][] getData() {
		return data;
	}

	private void setType(Type type) {
		this.type = type;
	}

	public Type getType() {
		return type;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}

	public void setWsTitle(String wsTitle) {
		this.wsTitle = wsTitle;
	}

	public String getWsTitle() {
		return wsTitle;
	}

	public void setFootnotes(String footnotes) {
		this.footnotes = footnotes;
	}

	public String getFootnotes() {
		return footnotes;
	}

	

}
